﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_BLUEPRINT_PRINT_RECYDED
// * CreateDate    : 2012/3/22 14:43:44
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/22 14:43:44
// * LastChanger   : 2012/3/22 14:43:44
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class ProdBlueprintPrintRecydedEntity : EntityBase
    {
        public ProdBlueprintPrintRecydedTable TableSchema
        {
            get
            {
                return ProdBlueprintPrintRecydedTable.Current;
            }
        }

        public ProdBlueprintPrintRecydedEntity()
        {

        }

        public ProdBlueprintPrintRecydedEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
            this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
            this.RecydedTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECYDED_TIME"]));
            this.RecydedQty = Convert.ToInt32(CommonFunctions.ToObject(dr["RECYDED_QTY"]));
            this.RecydedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECYDED_PERSON"]));
        }

        public ProdBlueprintPrintRecydedEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
            this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
            this.RecydedTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECYDED_TIME"]));
            this.RecydedQty = Convert.ToInt32(CommonFunctions.ToObject(dr["RECYDED_QTY"]));
            this.RecydedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECYDED_PERSON"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdBlueprintPrintRecydedTable.Current;
            }
        }

        #region Perporty List
        public string Id
        {
            get { return Convert.ToString(GetData(ProdBlueprintPrintRecydedTable.C_ID)); }
            set { SetData(ProdBlueprintPrintRecydedTable.C_ID, value); }
        }

        public string BlueprintId
        {
            get { return Convert.ToString(GetData(ProdBlueprintPrintRecydedTable.C_BLUEPRINT_ID)); }
            set { SetData(ProdBlueprintPrintRecydedTable.C_BLUEPRINT_ID, value); }
        }

        public DateTime RecydedTime
        {
            get { return Convert.ToDateTime(GetData(ProdBlueprintPrintRecydedTable.C_RECYDED_TIME)); }
            set { SetData(ProdBlueprintPrintRecydedTable.C_RECYDED_TIME, value); }
        }

        public int RecydedQty
        {
            get { return Convert.ToInt32(GetData(ProdBlueprintPrintRecydedTable.C_RECYDED_QTY)); }
            set { SetData(ProdBlueprintPrintRecydedTable.C_RECYDED_QTY, value); }
        }

        public string RecydedPerson
        {
            get { return Convert.ToString(GetData(ProdBlueprintPrintRecydedTable.C_RECYDED_PERSON)); }
            set { SetData(ProdBlueprintPrintRecydedTable.C_RECYDED_PERSON, value); }
        }

        #endregion
    }


}

